package com.yinghuo.risk.frigate.core.anno;

import com.yinghuo.risk.frigate.core.enums.Policy;

import java.lang.annotation.*;

/**
 * com.yinghuo.risk.frigate.core.anno
 *
 * @author 白雨浓
 * date: 2018/10/16 21:25
 * content: 拥有权限
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface HasRole {

    String[] value();

    Policy policy() default Policy.AND;
}
